package com.xzc.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 徐州城
 * @version 1.0
 */
@Controller
public class TestController {

    @RequestMapping("/")
    public String index(){
        return "index";
    }

    @RequestMapping("/error")
    public String error(){
        System.out.println(1/0);
        return "hello";
    }
}
